//
//  YCContentView.h
//  TitleContent
//
//  Created by 唐可雄 on 2019/7/19.
//  Copyright © 2019 swustyc. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class YCContentView;

@protocol YCContentViewDataSource <NSObject>

- (NSUInteger)numberOfPagesInContentView:(YCContentView *)contentView;
- (UIViewController *)contentView:(YCContentView *)contentView viewControllerAtIndex:(NSUInteger)index;

@end

@protocol YCContentViewDelegate <NSObject>

- (void)contentView:(YCContentView *)contentView transitionToTargetIndex:(NSUInteger)index progress:(CGFloat)progress;
- (void)contentView:(YCContentView *)contentView didSelectAtIndex:(NSUInteger)index;

@end

@interface YCContentView : UIView

- (void)setSelectedIndex:(NSUInteger)selectedIndex;
- (void)reloadData;

@end

NS_ASSUME_NONNULL_END
